/* The hero title whose name opens around the photo: white page, black type, photos in black and white. */
:root {
  --paper: #ffffff;          /* the page */
  --ink: #0b0b0b;            /* the name, the bars and the words */
  --soft: rgba(11, 11, 11, 0.42); /* the secondary words */
  --hair: rgba(11, 11, 11, 0.14); /* the thin lines */
  --photo: #161616;          /* the frame while the photos load */
  --size: min(11.2vw, 25vh); /* how big the name is */
  --pad: clamp(12px, 2.2vw, 28px);
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  height: 100%;
}
body {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mona Sans Variable', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(11px, 1.05vw, 14px);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* ------------------------------------------------------------ the bar at the top */
.barra {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--pad);
}
.barra__marchio svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.barra__voci {
  display: flex;
  gap: clamp(14px, 3.2vw, 46px);
  font-weight: 540;
}
.voce,
.suono__scritta {
  display: inline-block;
  overflow: clip;
  padding: 0.1em 0;
  white-space: nowrap;
}
.lettera {
  display: inline-block;
  text-shadow: 0 1.3em currentColor;
  transition: translate 0.5s cubic-bezier(0.625, 0.05, 0, 1);
  transition-delay: calc(var(--i) * 18ms);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .voce:hover .lettera,
  .suono:hover .lettera { translate: 0 -1.3em; }
}

/* ------------------------------------------------------------ the name */
.apertura {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nome {
  margin: 0;
  font-size: var(--size);
  font-weight: 620;
  font-stretch: 100%;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.nome__parola {
  display: inline-block;
  padding: 0.06em 0;
}
.cornice {
  position: relative;
  z-index: 1;
  flex: none;
  width: 0.75em;
  aspect-ratio: 1.5;
  margin: 0 0.06em 0 0.08em;
}
.cornice__tenuta {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--photo);
  will-change: width, height, transform;
}
.cornice__foto {
  position: absolute;
  inset: 0;
}
.cornice__foto img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(1) contrast(1.12) brightness(0.92); /* the real photos, turned black and white */
}
.cornice__grana {
  position: absolute;
  inset: -50%;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cornice__filo {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  opacity: 0;
}

/* ------------------------------------------------------------ the row at the bottom */
.fondo {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--pad);
  padding: var(--pad);
  line-height: 1.15;
  font-weight: 520;
}
.fondo__ascolto {
  display: flex;
  align-items: flex-end;
  gap: 0.75em;
}
.fondo__righe {
  display: flex;
  flex-direction: column;
}
.fioco { color: var(--soft); }
.riga {
  display: block;
  overflow: clip;
  padding-bottom: 0.08em;
}
.riga__dentro { display: block; }
.fondo__frase {
  display: none;
  margin: 0;
  max-width: 30em;
}
@media (min-width: 720px) {
  .fondo { grid-template-columns: 1fr 1fr auto; }
  .fondo__frase { display: block; }
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 0.15em;
  height: 1.6em;
  padding-bottom: 0.2em;
}
.eq i {
  display: block;
  opacity: 0.85;
  width: 0.2em;
  height: 100%;
  background: var(--ink);
  transform-origin: 50% 100%;
}

.suono {
  position: relative;
  padding: 0.55em 1.05em;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  transition: border-color 0.4s ease, background-color 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}
.suono__finestra {
  display: grid;
  height: 1.2em;
}
.suono__scritta {
  grid-area: 1 / 1;
  text-align: center;
  line-height: 1;
  transition: transform 0.7s cubic-bezier(0.625, 0.05, 0, 1);
}
.suono__scritta + .suono__scritta { transform: translateY(140%); }
.suono[aria-pressed='true'] .suono__scritta:first-child { transform: translateY(-140%); }
.suono[aria-pressed='true'] .suono__scritta + .suono__scritta { transform: translateY(0); }
.suono[aria-pressed='true'] { border-color: var(--ink); }
@media (hover: hover) {
  .suono:hover { border-color: var(--ink); }
}
.suono:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
