/* Small landscape phones: iPhone SE-class widths and the 683 x 384 preset. */
@media (min-width: 568px) and (max-width: 700px) and (max-height: 430px) and (orientation: landscape) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-desktop-v2.jpg");
    background-position: center;
    background-size: 100% 100%;
  }

  .home-nav {
    position: absolute;
    top: 0.55rem;
    left: 0.75rem;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem clamp(0.7rem, 2.2vw, 1rem);
    width: min(70vw, 410px);
    padding: 0.6rem 0.75rem 0.65rem;
    background: #a51f2c url("../img/responsive-nav-red.jpg") center / cover no-repeat;
    box-shadow: 0 2px 3px rgba(16, 16, 15, 0.28);
    transform: none;
  }

  .home-nav a {
    flex: 0 0 auto;
    padding: 0.16rem 0.25rem;
    font-size: clamp(1.22rem, 3.7vw, 1.5rem);
    line-height: 0.95;
    text-align: center;
    white-space: nowrap;
  }

  .home-nav-break {
    display: block;
    flex: 0 0 100%;
    height: 0;
  }

  .home-profile {
    top: 0.55rem;
    right: 0.75rem;
    width: clamp(78px, 12vw, 96px);
  }

  .home-portrait {
    width: 100%;
    height: auto;
  }

  .home-contact {
    width: 100%;
    margin: 0.3rem 0 0;
    color: #ffd400;
    font-size: clamp(0.95rem, 2.5vw, 1.08rem);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 1px rgba(16, 16, 15, 0.75);
    white-space: nowrap;
  }

  .home-socials {
    position: absolute;
    top: clamp(7.1rem, 33vh, 7.8rem);
    right: clamp(3.25rem, 9vw, 4rem);
    bottom: auto;
    width: clamp(115px, 17.5vw, 128px);
    margin: 0;
    padding: 0;
    font-size: clamp(0.96rem, 2.55vw, 1.1rem);
    line-height: 1.1;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .home-socials .home-handle {
    margin-bottom: 0.8rem;
  }
}

/* Larger landscape phones: retain a single navigation row with clear item spacing. */
@media (min-width: 701px) and (max-width: 991.98px) and (max-height: 550px) and (orientation: landscape) {
  .home-stage::before {
    background-image: url("../img/stencil-wall-desktop-v2.jpg");
    background-position: center;
    background-size: 100% 100%;
  }

  .home-nav {
    position: absolute;
    top: 0.55rem;
    left: 0.75rem;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 2.3vw, 1.5rem);
    width: calc(100% - clamp(132px, 17vw, 170px));
    padding: 0.65rem clamp(1rem, 2.1vw, 1.4rem) 0.7rem;
    background: #a51f2c url("../img/responsive-nav-red.jpg") center / cover no-repeat;
    box-shadow: 0 2px 3px rgba(16, 16, 15, 0.28);
    transform: none;
  }

  .home-nav a {
    flex: 0 0 auto;
    padding: 0.14rem clamp(0.35rem, 0.8vw, 0.55rem);
    font-size: clamp(1.2rem, 2.65vw, 1.5rem);
    line-height: 0.95;
    text-align: center;
    white-space: nowrap;
  }

  .home-nav-break {
    display: none;
  }

  .home-profile {
    top: 0.55rem;
    right: 0.75rem;
    width: clamp(92px, 12vw, 112px);
  }

  .home-portrait {
    width: 100%;
    height: auto;
  }

  .home-contact {
    width: 100%;
    margin: 0.35rem 0 0;
    color: #ffd400;
    font-size: clamp(1rem, 2.25vw, 1.2rem);
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 1px rgba(16, 16, 15, 0.75);
    white-space: nowrap;
  }

  .home-socials {
    position: absolute;
    top: clamp(8.9rem, 37vh, 9.8rem);
    right: clamp(5.5rem, 12vw, 7rem);
    bottom: auto;
    width: clamp(135px, 17vw, 155px);
    margin: 0;
    padding: 0;
    font-size: clamp(1rem, 2.2vw, 1.22rem);
    line-height: 1.1;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .home-socials .home-handle {
    margin-bottom: 0.85rem;
  }
}
