*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: #ffffff;
  color: #111;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
}

/* passport data page */
.passport {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: rise .9s cubic-bezier(.2, .7, .3, 1) both;
}

.photo {
  width: min(480px, 46vw);
  flex-shrink: 0;
  border: 1px solid #e6e6e6;
  background: #fff;
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
}

.info { padding-bottom: 8px; }

.label {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #a0a0a0;
  margin-bottom: 14px;
}

.name,
.surname {
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .04em;
}

.name { font-size: clamp(34px, 6vw, 58px); }

.surname {
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 300;
  color: #4a4a4a;
  margin-top: 6px;
}

/* machine readable zone */
.mrz {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  letter-spacing: .16em;
  color: #c8c8c8;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  animation: rise 1.2s .15s cubic-bezier(.2, .7, .3, 1) both;
}

/* sound toggle */
.sound {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.sound:hover { border-color: #111; transform: scale(1.06); }
.sound svg { width: 20px; height: 20px; fill: currentColor; }
.sound .ico-off { display: none; }
.sound.muted .ico-on { display: none; }
.sound.muted .ico-off { display: block; }
.sound.muted { color: #b5b5b5; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .passport { flex-direction: column; gap: 28px; text-align: center; }
  .photo { width: min(340px, 82vw); }
  .mrz { font-size: 9px; letter-spacing: .1em; }
}
