#ring-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: #252525;
}


/* Font: Bakemono Regular */
@font-face {
  font-family: "Bakemono";
  src: url("Fonts/Bakemono-Mono-Regular.ttf") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #252525;
  --text: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.75);

  --columns: 12;
  --gutter: 20px;
  --outer: 100px; /* margine */
}

*{ box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Bakemono", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Griglia 12 colonne */
.container{
  width: 100%;
  padding-inline: var(--outer);
}

.grid{
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  column-gap: var(--gutter);
}

/* Header */
header{
  padding-top: 48px;
}

.left{
  grid-column: 1 / span 6;
  align-self: start;
}

.right{
  grid-column: 7 / span 6;
  justify-self: end;
  align-self: start;
  text-align: right;
}

.name, .role{
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: 0.2px;
  margin: 0;
  font-weight: 400;
}

/* Icone sotto al nome, allineate a sinistra */
.icons{
  margin-top: 14px;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* Bottone icona */
.icon-btn{
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  border: 1px solid rgba(242,242,242,0.20);
  background: rgba(0,0,0,0.15);

  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}

.icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(242,242,242,0.45);
}

.icon-btn img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.slot{
  display: inline-block;
  letter-spacing: 0.5px;
  white-space: nowrap;
  will-change: contents;
}

/* opzionale: durante lo shuffle */
.slot.is-shuffling{
  text-shadow: 0 0 10px rgba(242,242,242,0.15);
  opacity: 0.95;
}

/* Rispetta chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce){
  .slot{ text-shadow: none; }
}

/* Layer sopra canvas per i puntini */
#hotspots{
  position: fixed;
  inset: 0;
  z-index: 0;           /* sta sopra al canvas (-1) ma sotto al contenuto se vuoi */
  pointer-events: none; /* di base non cattura eventi */
}

/* Ogni hotspot è cliccabile */
.hotspot{
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto; /* riattiviamo gli eventi sul puntino */
}

/* Il puntino */
.hotspot a{
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.916);
  box-shadow: 0 0 10px rgba(255,255,255,0.20);
  border: 1px solid rgba(255,255,255,0.35);
}

/* hover state */
.hotspot a:hover{
  transform: scale(1.15);
}

/* Preview (tooltip) */
.preview{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  transform-origin: left center;
  /*opacity: 1;*/
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Mostra preview su hover */
.hotspot:hover .preview,
.hotspot:focus-within .preview{
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Mostra preview su hover */
.hotspot:hover .preview img,
.hotspot:focus-within .preview img{
  opacity: 1;
  transform: scale(1);
}

/* Immagine preview circolare */
.preview img{
  opacity: 0;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 16px rgba(255,255,255,0.12);
}

/* opzionale: titolo sotto immagine */
.preview .label{
  margin-top: 8px;
  font-size: 14px;
  color: rgba(245,245,245,0.85);
  white-space: nowrap;
}

/* Se vuoi che gli hotspot stiano sotto all'header, alza lo z-index dell'header */
header{ position: relative; z-index: 10; }

#circle-transition{
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #faf9f9; /* stesso bg del sito */
  pointer-events: none;
  z-index: 9999;

  transform: translate(-50%, -50%) scale(0);
  opacity: 0;

  transition:
    transform 700ms cubic-bezier(.7,0,.2,1),
    opacity 200ms ease;
}

/* contenitore fisso in basso a destra */
#portrait-p5{
  position: fixed;
  right: -200px;
  bottom: -200px;
  width: 800px;
  height: 800px;
  border-radius: 999px;
  overflow: hidden;
  z-index: 6;           /* sopra ring/hotspots */
  pointer-events: none; /* non blocca click sul sito */

}


















/* Responsive */
@media (max-width: 1024px){
  :root{ --outer: 48px; }
  header{ padding-top: 32px; }
}

@media (max-width: 720px){
  :root{ --outer: 20px; }
  header{ padding-top: 24px; }

  .left{ grid-column: 1 / -1; }

  .right{
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
    margin-top: 18px;
    color: var(--muted);
  }
}
