/*
 * VitaAvanza × Slush — NothingCN layer for /connect.
 * Glyph arrows (SVG, never emoji), a live dot-matrix Helsinki clock, status lights,
 * dot-matrix numerals and the "NICE TO MEET YOU" sign-off. Every animation is
 * decorative and switched off under prefers-reduced-motion; without JavaScript the
 * page shows its complete static state.
 */

/* ── Glyph arrows ─────────────────────────────────────────────────────────── */
.nc-arrow { display:block; flex:none; width:1em; height:1em; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:translate 240ms cubic-bezier(.3,0,0,1); }
.slush-intro-link > span { display:inline-flex; }
.slush-intro-link .nc-arrow { width:22px; height:22px; }
.slush-person em > span { display:inline-flex; }
.slush-person em .nc-arrow { width:20px; height:20px; stroke-width:1.7; }
.slush-person-contact .nc-arrow--save { width:15px; height:15px; stroke-width:1.9; }
@media (prefers-reduced-motion:no-preference) {
  .slush-intro-link:hover .nc-arrow { translate:2px 2px; }
  .slush-person:hover em .nc-arrow,.slush-person:focus-visible em .nc-arrow { translate:2px -2px; }
  .slush-person-contact > a:hover .nc-arrow--save { translate:0 2px; }
}

/* ── Live Helsinki clock ──────────────────────────────────────────────────── */
.nc-clock { display:inline-flex; align-items:center; gap:.55em; margin-left:.55em; color:inherit; }
.nc-clock[hidden] { display:none; }
.nc-clock time { font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.nc-colon { display:inline-block; }
.slush-pass-symbol[data-live] { display:inline-flex; align-items:flex-end; gap:6px; font-size:30px; font-variant-numeric:tabular-nums; }
.slush-pass-symbol[data-live] small { padding-bottom:4px; font:500 9px/1 var(--font-meta); letter-spacing:.12em; color:#6b6b6b; }
@media (prefers-reduced-motion:no-preference) {
  .nc-colon { animation:nc-blink 2s steps(1) infinite; }
}
@keyframes nc-blink { 50% { opacity:.15; } }

/* Hero eyebrow: legible on every screen; the live clock wraps onto its own line on phones. */
.identity-object .identity-object__content > .slush-eyebrow { flex-wrap:wrap; row-gap:8px; font-size:10px; }

/* ── Dot-matrix numerals ──────────────────────────────────────────────────── */
.slush-eyebrow .nc-num { font:800 22px/1 "Doto",var(--font-meta); letter-spacing:-.05em; color:var(--slush-violet); }

/* ── Team cards: status light, legible labels, dot field on hover ─────────── */
.slush-person > .nc-onsite { position:absolute; top:12px; right:14px; z-index:1; display:inline-flex; flex:none; align-items:center; gap:7px; padding:5px 10px 5px 9px; border:1px solid #e2e2e2; border-radius:999px; background:#fff; color:#3a3a3a; font:500 10px/1 var(--font-meta); letter-spacing:.1em; text-transform:uppercase; }
.nc-onsite i { position:relative; width:6px; height:6px; border-radius:50%; background:#ff5a24; }
.nc-onsite i::after { position:absolute; inset:0; border-radius:50%; background:#ff5a24; content:""; }
@media (prefers-reduced-motion:no-preference) {
  .nc-onsite i::after { animation:nc-ping 1.9s cubic-bezier(0,0,.2,1) infinite; }
}
@keyframes nc-ping { 75%,100% { opacity:0; transform:scale(2.8); } }

.slush-team-entry .slush-person::before { font-size:10px; }
.slush-person::after { position:absolute; inset:0; border-radius:inherit; pointer-events:none; opacity:0; content:""; background-image:radial-gradient(circle at center,#171717 .8px,transparent 1.3px); background-size:9px 9px; background-position:4.5px 4.5px; -webkit-mask-image:linear-gradient(115deg,transparent 48%,#000); mask-image:linear-gradient(115deg,transparent 48%,#000); transition:opacity 320ms ease; }
.slush-person:hover::after,.slush-person:focus-visible::after { opacity:.13; }
.slush-person-contact > a { gap:8px; font-size:12px; }

/* ── "NICE TO MEET YOU" sign-off ──────────────────────────────────────────── */
.nc-signoff { padding:64px 0 10px; border-top:1px solid var(--slush-rule); }
/* Two selectors deep: the page's `body[data-va-page] :where(svg)` rule would otherwise win. */
.nc-signoff .nc-signoff__mark { display:block; width:100%; height:auto; overflow:visible; }
.nc-signoff .nc-signoff__mark--narrow { display:none; }
.nc-signoff pattern circle { fill:#dcd8e3; }
.nc-signoff__lit circle { fill:var(--slush-ink); }
.nc-signoff__stop { fill:#ff5a24; }
@media (prefers-reduced-motion:no-preference) {
  .nc-signoff.is-armed .nc-signoff__lit circle,.nc-signoff.is-armed .nc-signoff__stop { opacity:.06; transform:scale(.35); transform-box:fill-box; transform-origin:center; }
  .nc-signoff.is-lit .nc-signoff__lit circle { animation:nc-dot-on 460ms cubic-bezier(.3,0,0,1) both; animation-delay:calc(var(--i) * 14ms); }
  .nc-signoff.is-lit .nc-signoff__stop { animation:nc-dot-on 460ms cubic-bezier(.3,0,0,1) both,nc-blink 1.1s steps(1) 3; animation-delay:calc(var(--i) * 14ms),calc(var(--i) * 14ms + 600ms); }
}
@keyframes nc-dot-on { from { opacity:.06; transform:scale(.35); } to { opacity:1; transform:none; } }

/* ── Phones ───────────────────────────────────────────────────────────────── */
@media (max-width:760px) {
  .slush-team-entry .slush-person::before { top:15px; left:14px; font-size:10px; letter-spacing:.06em; content:"01"; }
  .slush-team-entry:nth-child(2) .slush-person::before { content:"02"; }
  .slush-person > .nc-onsite { top:10px; right:10px; padding:4px 8px 4px 7px; font-size:9.5px; gap:6px; }
  .slush-person small { font-size:11px; }
  .slush-person em { font-size:11px; }
  .slush-person em .nc-arrow { width:18px; height:18px; }
  .slush-person-contact > a { font-size:12px; }
  .slush-eyebrow .nc-num { font-size:20px; }
  .slush-section-heading .slush-eyebrow,.slush-resources__intro .slush-eyebrow { font-size:10px; }
  .identity-object .identity-object__content > .nc-clock,.identity-object .slush-eyebrow > .nc-clock { flex-basis:100%; margin-left:16px; }
  .connect-footer { font-size:10px; }
}
@media (max-width:640px) {
  .nc-signoff { padding-top:44px; }
  .nc-signoff .nc-signoff__mark--wide { display:none; }
  .nc-signoff .nc-signoff__mark--narrow { display:block; }
}

@media print { .nc-onsite,.nc-clock,.nc-signoff { display:none; } }
