/* ==========================================================
   04 · Trust: left-aligned heading with highlighted numbers,
   a swipeable rail of dark client-portal cards with real
   photography (reference style), arrows, stat row
   ========================================================== */
.trust { padding: 120px 0 56px; overflow: hidden; }
.trust { isolation: isolate; }
.tr-head { display: grid; gap: 20px; justify-items: start; max-width: 760px; }
.tr-head .h2 { text-wrap: balance; }
.tr-head .lead { max-width: 46ch; }

/* ---------- Rail ---------- */
.tr-rail { margin-top: 48px; }
.tr-track {
  list-style: none; margin: 0;
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* 88px below the cards: room for the hover shadow (it reaches ~82px
     down) so it fades out instead of being cut off flat by the scroller */
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2)) 88px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.tr-track::-webkit-scrollbar { display: none; }

/* ---------- Portal card (dark, photo, centred logo) ---------- */
.pc {
  --c: var(--cobalt-500);
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; flex: none; width: 360px;
  scroll-snap-align: start;
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: #0B0D14;
  /* depth: a hairline rim, a contact shadow and a long soft one */
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 1px 0 rgba(255,255,255,.08) inset,
    0 2px 4px rgba(6,9,20,.25),
    0 24px 50px -24px rgba(6,9,20,.6);
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
}
/* hover: the card tilts toward the pointer (js/main.js §5) and a soft
   light follows it; the photo stays whole */
.pc::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,255,255,.10), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
.pc:hover::after { opacity: 1; }
.pc:hover {
  transition: transform .12s linear, box-shadow .4s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 1px 0 rgba(255,255,255,.1) inset,
    0 4px 8px rgba(6,9,20,.25),
    0 40px 70px -28px rgba(6,9,20,.75);
}
.pc-photo { position: relative; height: 230px; overflow: hidden; border-radius: 26px 26px 0 0; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.pc-photo::after { /* photo dissolves into the card, with a cool blue cast like the brand */
  content: ""; position: absolute; inset: -1px;
  background:
    linear-gradient(180deg, rgba(11,13,20,0) 35%, rgba(11,13,20,.65) 75%, #0B0D14 100%),
    linear-gradient(180deg, rgba(47,107,255,.18), rgba(47,107,255,0) 60%);
}
.pc-pill {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: calc(100% - 28px);
  padding: 6px 10px; border-radius: 10px;
  background: rgba(11,13,20,.45); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Company mark: an enamel coin with real thickness ----------
   layers, back to front: coloured glow on the card, the coin's edge
   (stacked hard shadows = its thickness), the face (lit from the top
   left), a glass highlight, then the glyph pressed into it */
.pc-logo {
  position: absolute; z-index: 2; left: 50%; top: 230px;
  width: 76px; height: 76px; border-radius: 50%;
  translate: -50% -50%;
  display: grid; place-items: center;
  color: #fff;
  background:
    radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--c) 45%, white) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 70%, black) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),           /* top bevel, kept subtle */
    inset 0 -3px 6px color-mix(in srgb, var(--c) 50%, black), /* lower bevel */
    0 0 0 4px #0B0D14,                                 /* seat cut into the card */
    0 0 0 5px rgba(255,255,255,.12),
    0 2px 0 4px color-mix(in srgb, var(--c) 35%, #0B0D14),     /* coin edge */
    0 18px 30px -8px color-mix(in srgb, var(--c) 80%, transparent),
    0 6px 12px rgba(0,0,0,.45);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease;
  transform: translate(var(--lx, 0px), var(--ly, 0px));  /* parallax, set with the tilt */
}
.pc-logo svg {
  position: relative; width: 34px; height: 34px; fill: #fff; color: #fff;   /* agency marks: white PNG masks, cropped with a little air */
  /* pressed in: a dark lip above, a light catch below */
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.28)) drop-shadow(0 1px 0 rgba(255,255,255,.35)) drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
.pc:hover .pc-logo { scale: 1.06; }
.pc-body { position: relative; padding: 48px 22px 22px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.pc-body > b { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.pc-kind { font-size: 13.5px; color: #A9B0C2; }
.pc-stats { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 14px; color: #C9CEDB; }
.pc-stats > span { display: inline-flex; align-items: center; gap: 7px; }
.pc-stats .i { width: 15px; height: 15px; color: #8C93A8; }
.pc-stats > i { width: 1px; height: 16px; background: rgba(255,255,255,.16); }
.pc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3BE07F; box-shadow: 0 0 0 3px rgba(59,224,127,.18); }

/* ---------- Arrows ---------- */
/* centred under the rail, 56px below the cards so a hovered card never touches them */
.tr-nav { display: flex; justify-content: center; gap: 10px; margin-top: -32px; padding-bottom: 8px; }
.tr-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; background: var(--white); color: var(--ink-950);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}
.tr-btn svg { width: 20px; height: 20px; }
.tr-btn:hover { box-shadow: var(--shadow-md); }
.tr-btn:active { transform: translateY(1px); }
.tr-btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.tr-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 767px) {
  .trust { padding: 72px 0 24px; }
  .tr-head { justify-items: start; text-align: left; }
  .tr-track { gap: 12px; }
  .pc { width: 280px; }
  .pc-body > b { font-size: 19px; }
}
