/* Phones and small tablets. */
@media (max-width: 820px) {
  :root {
    --badge-width: 27vw;
    --tag-width: calc((100vw - 24px - 18px) / 4);
  }

  /* four equal tags in one row */
  .nav-tag {
    top: 12px;
    justify-content: center;
    width: var(--tag-width);
    height: 34px;
    padding: 0 4px;
    font-size: min(12.5px, 3.3vw);
    letter-spacing: -.03em;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18), 0 5px 12px rgba(0, 0, 0, .16);
  }

  .nav-tag--studio { left: 12px; }
  .nav-tag--portfolio { left: calc(12px + var(--tag-width) + 6px); right: auto; }
  .nav-tag--contacts { left: calc(12px + 2 * (var(--tag-width) + 6px)); right: auto; }
  .nav-tag--resume { left: auto; right: 12px; }

  .lang-toggle {
    left: auto;
    right: 12px;
    top: 54px;
    bottom: auto;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  }

  .lang-toggle button {
    height: 24px;
    padding: 0 9px;
    font-size: 11px;
  }

  .is-showcase .lang-toggle {
    visibility: hidden;
  }

  .wordmark {
    left: 3vw;
    top: calc(12px + 96 * var(--n));
    width: 94vw;
    height: calc(94vw * 240 / 1440);
  }

  .tagline {
    left: auto;
    right: 6vw;
    top: calc(12px + 96 * var(--n) + 14vw);
    font-size: 15vw;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    transform: rotate(-7deg);
  }

  .lanyard {
    right: 2vw;
    top: calc(12px + 96 * var(--n) + 9vw);
    z-index: -1;
  }

  .brand,
  .is-showcase .brand {
    display: none;
  }

  .ticket {
    left: 0;
    right: 0;
    top: 62px;
    width: min(86vw, 360px);
    height: auto;
    margin: 0 auto;
    padding: 22px 26px 16px 36px;
    border-radius: 3px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  }

  .ticket__hole {
    width: 15px;
    height: 15px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, .35);
  }

  .ticket__hole:nth-child(1) { left: 9px; top: 9px; }
  .ticket__hole:nth-child(2) { right: 9px; top: 9px; }
  .ticket__hole:nth-child(3) { left: 9px; bottom: 9px; }
  .ticket__hole:nth-child(4) { right: 9px; bottom: 9px; }

  .ticket__title { font-size: 38px; }
  .ticket__rows { margin-top: 6px; }
  .ticket__rows li { padding: 3px 0 2px; font-size: 11px; }

  .project-info {
    left: 0;
    right: 0;
    top: calc(62px + var(--ticket-height) + 18px);
    width: min(86vw, 360px);
    margin: 0 auto;
    text-align: center;
  }

  .project-info__key { font-size: 15px; }
  .project-info__text { margin-top: 6px; font-size: 13.5px; }
  .project-info__count { display: none; }

  .project-info__links {
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .project-info__links a {
    padding: 5px 9px;
    font-size: 12px;
  }

  .case-nav {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 2.2vh);
    flex-direction: row;
    gap: 10px;
  }

  .case-nav--prev { left: 6vw; }
  .case-nav--next { right: 6vw; flex-direction: row-reverse; }

  .case-nav__circle {
    width: 42px;
    height: 42px;
  }

  .case-nav__circle svg {
    width: 20px;
    height: 20px;
  }

  .case-nav__label {
    font-size: 12.5px;
    white-space: nowrap;
  }

  .case-nav__label br {
    display: none;
  }

  .scroll-hint {
    bottom: 18px;
    gap: 8px;
    font-size: 11px;
  }

  .scroll-hint__drip {
    width: 1.5px;
    height: 20px;
  }
}
