/* The bank card that turns over, takes its name and slips into the wallet on scroll. Colours in :root. */
:root {
  --fondo: #0b0c10;
  --inchiostro: #f4f1ea;
  --secondario: #8f909b;
  --spento: #2a2c34;
  --bordo: rgba(255, 255, 255, 0.09);
  --accento: #7d95ff;
  --telefono: #121318;
  --verde: #5fd39a;
  --grafite-a: #3b3d45;
  --grafite-b: #141519;
  --sabbia-a: #e6d6b6;
  --sabbia-b: #b0966c;
  --cobalto-a: #3d5ff2;
  --cobalto-b: #16288a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.corsa { position: relative; height: 460vh; }
.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2.2vh, 22px);
  padding: clamp(10px, 3vh, 36px) 14px;
  overflow: hidden;
}

/* the glow behind the stage, it takes the colour of the finish */
.alone {
  position: absolute;
  left: 50%;
  top: 56%;
  width: min(120vw, 1100px);
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--bagliore, rgba(125, 149, 255, 0.22)), transparent 70%);
  pointer-events: none;
}

.testa {
  position: relative;
  width: min(100%, 560px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.marchio { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: clamp(12px, 2vh, 15px); letter-spacing: 0.01em; }
.marchio svg { width: 1.25em; height: 1.25em; fill: none; stroke: var(--inchiostro); stroke-width: 1.4; stroke-linejoin: round; }
.barre { display: flex; gap: 5px; width: min(44%, 200px); }
.barra { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--spento); overflow: hidden; }
.barra i { position: absolute; inset: 0; background: var(--inchiostro); transform-origin: left; transform: scaleX(0); border-radius: 3px; }

.passi { position: relative; width: min(100%, 560px); height: clamp(40px, 9vh, 76px); text-align: center; }
.passo { position: absolute; inset: 0; opacity: 0; }
.passo__titolo { font-size: clamp(17px, 4.2vh, 34px); font-weight: 640; font-stretch: 92%; letter-spacing: -0.02em; line-height: 1.08; }
.passo__riga { margin-top: clamp(2px, 0.8vh, 8px); font-size: clamp(11px, 1.9vh, 15px); color: var(--secondario); }

.scena { position: relative; width: 100%; max-width: 760px; height: clamp(170px, 50vh, 470px); flex: none; }

/* the phone: drawn, never a real model */
.telefono {
  position: absolute;
  left: 50%;
  top: 0;
  border-radius: 13% / 6.4%;
  background: linear-gradient(160deg, #26272e, #0d0e12 60%);
  padding: 2.4%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 12px 24px -12px rgba(0, 0, 0, 0.6);
  opacity: 0;
}
.telefono__schermo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11% / 5.4%;
  background: radial-gradient(120% 70% at 50% 0%, #1c1e27, #0a0b0f 70%);
  overflow: hidden;
}
.telefono__stato { display: flex; align-items: center; justify-content: space-between; padding: 6% 8% 0; font-size: max(7px, 0.42em); font-weight: 600; color: #d9d9e0; }
.telefono__isola { width: 30%; height: 1.4em; border-radius: 1em; background: #000; }
.telefono__icone { display: flex; gap: 2px; }
.telefono__icone i { width: 3px; height: 6px; border-radius: 1px; background: #d9d9e0; }
.telefono__icone i:nth-child(1) { height: 3px; margin-top: 3px; }
.telefono__icone i:nth-child(2) { height: 4.5px; margin-top: 1.5px; }
.telefono__titolo { padding: 6% 8% 0; font-size: max(10px, 0.8em); font-weight: 680; letter-spacing: -0.01em; }
.altra { position: absolute; left: 7%; right: 7%; aspect-ratio: 1.586; border-radius: 7% / 11%; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 16px -8px rgba(0, 0, 0, 0.7); }
.altra--una { background: linear-gradient(135deg, #3a7d6a, #1d4a3e); }
.altra--due { background: linear-gradient(135deg, #8a5a3c, #4c2f1f); }
.avviso {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  display: flex;
  align-items: center;
  gap: 5%;
  padding: 4.5% 5%;
  border-radius: 1.1em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}
.avviso svg { flex: none; width: 1.6em; height: 1.6em; }
.avviso circle { fill: var(--verde); }
.avviso path { fill: none; stroke: #07130d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avviso span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; }
.avviso b { font-size: max(6.5px, 0.46em); font-weight: 640; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avviso em { font-style: normal; font-size: max(5.5px, 0.38em); color: var(--secondario); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the card */
.ombra {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  filter: blur(6px);
  pointer-events: none;
}
.carta {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.faccia {
  position: absolute;
  inset: 0;
  border-radius: 6.2% / 9.8%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}
.faccia--fronte {
  background: linear-gradient(135deg, var(--c1, #34363e), var(--c2, #15161a));
  color: var(--ink, #f4f1ea);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 -1px 0 rgba(0, 0, 0, 0.3) inset, 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7% 7.5%;
}
.faccia--retro {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #2b2d34, #121317);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset, 0 0 0 1px rgba(255, 255, 255, 0.05);
  color: #b9bac3;
}
.banda { position: absolute; left: 0; right: 0; top: 13%; height: 19%; background: linear-gradient(180deg, #050506, #1a1b20); }
.firma { position: absolute; left: 7.5%; right: 7.5%; top: 42%; height: 16%; display: flex; align-items: center; justify-content: space-between; padding: 0 3%; border-radius: 3px; background: repeating-linear-gradient(-45deg, #e9e5da 0 4px, #dcd7ca 4px 8px); color: #6b6658; font-size: max(6px, 0.36em); }
.firma b { font-style: italic; font-weight: 600; color: #3a362c; letter-spacing: 0.08em; }
.retro__testo { position: absolute; left: 7.5%; right: 7.5%; bottom: 9%; font-size: max(5px, 0.3em); line-height: 1.4; opacity: 0.7; }

.grana {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.riflesso {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 62%);
  transform: translateX(-60%);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.fronte__alto { position: relative; display: flex; align-items: center; justify-content: space-between; }
.fronte__marchio { display: flex; align-items: center; gap: 0.4em; font-weight: 650; font-size: max(8px, 0.62em); letter-spacing: 0.02em; }
.fronte__marchio svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.contactless { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.chip { position: relative; width: 15%; height: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35)); }
.fronte__basso { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.nome {
  min-height: 1.3em;
  font-size: max(8px, 0.62em);
  font-weight: 600;
  font-stretch: 110%;
  letter-spacing: 0.16em;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22), 0 -1px 0 rgba(0, 0, 0, 0.35);
}
.nome span { display: inline-block; }
.numero { margin-top: 0.3em; font-size: max(6px, 0.42em); opacity: 0.75; letter-spacing: 0.04em; }
.numero b { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
.tipo { font-size: max(6px, 0.42em); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }

/* the finishes */
.finiture { position: relative; display: flex; align-items: center; gap: clamp(8px, 1.6vh, 12px); height: clamp(22px, 4vh, 30px); }
.finitura { position: relative; width: clamp(14px, 2.6vh, 20px); aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 0 0 1px rgba(255, 255, 255, 0.1); }
.finiture__anello { position: absolute; left: 0; top: 50%; width: clamp(22px, 3.8vh, 30px); aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--inchiostro); }
.finiture__nome { margin-left: 6px; min-width: 5.5em; font-style: normal; font-size: clamp(11px, 1.8vh, 14px); color: var(--secondario); }

.invito { font-size: clamp(10px, 1.6vh, 13px); color: var(--secondario); letter-spacing: 0.04em; }
.piede { padding: 40px 16px 60px; text-align: center; font-size: 12px; color: var(--secondario); }
