/* ====================================
   HOME HERO: cerchio di particelle
   ==================================== */
.vh-hero { position: relative; height: 100vh; }
.vh-hero.vh-on { height: 300vh; } /* pista di scroll: il cerchio si apre mentre scorri, poi una pausa dentro */

.vh-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

/* Il mondo dietro il cerchio: l'inizio della sezione Progetti */
.vh-world {
  position: absolute;
  inset: 0;
  background: var(--dark);
  visibility: hidden;
}
.vh-on .vh-world { visibility: visible; }
/* Il contenuto del mondo: lontano (piccolo) da fuori, a grandezza piena quando ci entri */
.vh-world-inner.work-list-section {
  position: absolute;
  inset: 0;
  padding: 64px 0 0;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}
/* il titolo tutto a sinistra (niente colonna per l'etichetta numerata) */
.vh-world-inner .section-header { display: block; padding: 0 40px 32px; }
.vh-world-inner .vh-cta { padding: 32px 40px 0; }

/* Fila di card che scorre in orizzontale */
.vh-row {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* a sinistra le card svaniscono (e si sfaldano in particelle), a destra entrano */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 140px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 140px, #000 calc(100% - 80px), transparent 100%);
  /* the page still scrolls vertically; horizontal swipes move the row (handled by the script) */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.vh-track {
  display: flex;
  width: max-content;
  will-change: transform; /* moved by the script: auto-flow, hover slow-down, swipe */
}
.vh-card img { -webkit-user-drag: none; }

.vh-card {
  flex: none;
  display: block;
  width: clamp(240px, 28vw, 420px);
  margin-right: 20px;
  color: var(--bg);
  text-decoration: none;
}
.vh-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a1a;
}
.vh-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.vh-card-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
}
/* puntino arancione come quello accanto al nome nel menu, ma piu piccolo */
.vh-card-dot {
  flex: none;
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.vh-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.02em;
}
.vh-card-tag {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239, 238, 233, 0.6);
}
.vh-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .vh-card:hover .vh-card-img img { transform: scale(1.04); }
}
@media (max-width: 720px) {
  .vh-card { width: 72vw; }
  .vh-world-inner .section-header { padding: 0 20px 24px; }
  .vh-world-inner .vh-cta { padding: 24px 20px 0; }
}

.vh-veil,
.vh-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.vh-veil { z-index: 1; }
.vh-dust { z-index: 3; }

/* Il titolo, piu piccolo e centrato sotto il cerchio */
.vh-title {
  position: absolute;
  top: 45%;
  left: 20px;
  right: 20px;
  z-index: 2;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.vh-title .highlight {
  background: var(--accent);
  padding: 0 0.12em 0.04em;
  display: inline-block;
  line-height: 0.95;
}
.vh-title .outline {
  -webkit-text-stroke: 1px var(--electric);
  color: transparent;
  font-weight: 500;
}
.vh-title .vh-w { display: inline-block; white-space: nowrap; }
.vh-title .nobr { white-space: nowrap; } /* "in movimento." va a capo insieme */
.vh-title .vh-ch { display: inline-block; }

.vh-bar {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}
.vh-hint b {
  font-weight: 400;
  display: inline-block;
  animation: vh-nudge 1.8s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes vh-nudge { 50% { transform: translateY(4px); } }

/* Ingresso accessibile, dimensionato sul cerchio dallo script */
.vh-enter {
  position: absolute;
  z-index: 4;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: transparent;
  font-size: 0;
}
.vh-enter:focus-visible { outline: 2px solid var(--fg); outline-offset: 6px; }

@media (max-width: 720px) {
  .vh-bar { left: 20px; right: 20px; justify-content: center; }
  .vh-bar .vh-side { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-hint b { animation: none; }
}

/* Chi sono: niente etichetta numerata, il testo parte da sinistra */
.about-short { display: block; }
.vh-about { max-width: 780px; }
